/*
 *  Copyright (C) 2010 Jesus Navalon i Pastor <jnavalon at redhermes dot net>
 * 
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * pn_NetList.java
 *
 * Created on 25/12/2010, 19:03:22
 */

package kuasar.plugin.vmcreator.gui.tooltasks.AddHost;

import javax.swing.ImageIcon;

/**
 *
 * @author Jesus Navalon i Pastor <jnavalon at redhermes dot net>
 */
public class pn_NetList extends javax.swing.JPanel {

    /** Creates new form pn_NetList */
    public pn_NetList(String Text, ImageIcon icon, boolean selected) {
        initComponents();
        lbl_NetDevice.setText(Text);
        lbl_NetDevice.setIcon(icon);
        pn_Selected.setOpaque(selected);
        this.updateUI();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lbl_NetDevice = new javax.swing.JLabel();
        pn_Selected = new javax.swing.JPanel();

        setOpaque(false);

        lbl_NetDevice.setFont(new java.awt.Font("Verdana", 0, 14)); // NOI18N
        lbl_NetDevice.setForeground(new java.awt.Color(204, 204, 204));
        lbl_NetDevice.setIcon(new javax.swing.ImageIcon(getClass().getResource("/kuasar/plugin/vmcreator/icons/nat.png"))); // NOI18N

        pn_Selected.setBackground(new java.awt.Color(204, 204, 255));

        javax.swing.GroupLayout pn_SelectedLayout = new javax.swing.GroupLayout(pn_Selected);
        pn_Selected.setLayout(pn_SelectedLayout);
        pn_SelectedLayout.setHorizontalGroup(
            pn_SelectedLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 12, Short.MAX_VALUE)
        );
        pn_SelectedLayout.setVerticalGroup(
            pn_SelectedLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 49, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(lbl_NetDevice, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE))
            .addComponent(pn_Selected, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(lbl_NetDevice, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
                .addGap(1, 1, 1))
            .addComponent(pn_Selected, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel lbl_NetDevice;
    private javax.swing.JPanel pn_Selected;
    // End of variables declaration//GEN-END:variables

}
